-- GENERATED SPELL FOR [Blistering Steamrager] --


function spell0_28583(pUnit, Event) --@Steam Blast,Self--
pUnit:FullCastSpellOnTarget(52531,pUnit)
pUnit:RegisterEvent('Sorts_28583', 591, 1)
end

function spell1_28583(pUnit, Event) --@Steam Blast,Self--
pUnit:FullCastSpellOnTarget(59141,pUnit)
pUnit:RegisterEvent('Sorts_28583', 587, 1)
end

function Sorts_28583(pUnit, Event)
local choix_sorts_28583 = math.random(0, 1)
if choix_sorts_28583 == 0 then
pUnit:RegisterEvent('spell0_28583', 1, 1)
end
if choix_sorts_28583 == 1 then
pUnit:RegisterEvent('spell1_28583', 1, 1)
end
end

function mob28583_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28583', math.random(1500, 3000), 1)
end

function mob28583_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28583_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28583_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28583, 1, 'mob28583_Action')
RegisterUnitEvent(28583, 2, 'mob28583_Leave')
RegisterUnitEvent(28583, 3, 'mob28583_Kill')
RegisterUnitEvent(28583, 4, 'mob28583_Die')
